package com.twh.www.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import lombok.Data;

/**
 * 
 * @TableName wn_user
 */
@TableName(value ="wn_user")
@Data
public class WnUser {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 
     */
    private String account;

    /**
     * 
     */
    private String password;

    /**
     * 
     */
    private String email;

    /**
     * 
     */
    private String telphone;

    /**
     * 
     */
    private Integer points;

    /**
     * 
     */
    private BigDecimal money;

    /**
     * 
     */
    private String avatar;

    /**
     * 
     */
    private LocalDateTime regTime;

    /**
     * 
     */
    private String status;

    /**
     * 
     */
    private LocalDateTime lastLoginTime;

    /**
     * 
     */
    private String lastLoginIp;
    /**
     * 角色，例如 "user", "admin"
     */
    private String role;

    @TableField(exist = false) // 该字段不在数据库表中
    private String errorMessage;

}